import request from '@/utils/request'

// 查询检查项列表
export function listOrder(query) {
  return request({
    url: '/reserve/order/list',
    method: 'get',
    params: query
  })
}

// 修改预约状态为确认预约
export function updateComfirmOrderStatus(data) {
  return request({
    url: '/reserve/order/updateComfirmOrderStatus',
    method: 'post',
    data: data
  })
}

// 修改预约状态为取消预约
export function updateCancelOrderStatus(data) {
  return request({
    url: '/reserve/order/updateCancelOrderStatus',
    method: 'post',
    data: data
  })
}

// 新增时通过输入的字段查询单条数据
export function listOrder1(query) {
  return request({
    url: '/reserve/order/list1',
    method: 'get',
    params: query
  })
}

// 新增预约
export function addOrder(data) {
  return request ({
    url: '/reserve/order/addOrder',
    method: 'post',
    data: data
  })
}
